package sampleapp.client;

import sampleapp.shared.PersonInfo;

import com.google.gwt.event.shared.EventBus;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.View;

public class PersonWidgetPresenter extends
		PresenterWidget<PersonWidgetPresenter.MyView> {

	public interface MyView extends View {
		// TODO Put your view methods here
		public void setPersonInfo(PersonInfo persInfo);
	}

	@Inject
	public PersonWidgetPresenter(final EventBus eventBus, final MyView view) {
		super(eventBus, view);
	}

	@Override
	protected void onBind() {
		super.onBind();
	}
	
	public void setPersonInfo(PersonInfo persInfo){
		this.getView().setPersonInfo(persInfo);
		
	}
	
}
